let vm = new Vue({
    el: ".login",
    props: [],
    data() {
        return {
            number: "",
            ppp: "",
        }; 
    },
    methods: {
        onLogin() {
            leiku.post(
                "http://dongtai.fsslpc.com/api/434",
                {
                    number: this.number,
                    ppp: this.ppp,
                },
                (res) => {
                    this.$toast("登录成功");

                    let name = res.requestname;

                    window.localStorage.setItem(name, JSON.stringify(res));
                    //登录成功跳转
                    setTimeout(() => {
                        leiku.linkFn({
                            url:
                                leiku.GetUrlParam("url") ||
                                "/w/web/tongtai/pages/order.html",
                        });
                    }, 1000);
                }
            );
        },
        iconChange(num) {
            this.iconActive = num;
        },
        getImg(imgs) {
            return leiku.getImg(imgs)[0];
        },
        onLeft() {
            window.history.go(-1);
        },
        tz(url, param) {
            leiku.linkFn({
                url,
                param,
            });
        },
        onSearch() {
            this.tz("classifyList.html", { search: this.value });
        },
    },
    computed: {
        isPage() {
            let arr = leiku.iconPages(this.icons, 5);
            return arr;
        },
    }
})